package JavaDesign.report_3.t_1;

/**
 * @author zouran
 * createDate：2023/10/11  0:04
 */
public class ConcreteCommand implements Command {
    CompanyArmy army;           //含有接收者的引用

    ConcreteCommand(CompanyArmy army) {
        this.army = army;
    }

    public void execute() {    //封装着指挥官的请求
        army.sneakAttack();     //偷袭敌人
    }
}

